﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.WMare
{
    [Table("MqttUser")]
    public class MqttUser
    {
        /// <summary>
        /// ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

        /// <summary>
        /// 是否超级管理员，如果是会忽略ACL控制
        /// </summary>
        public bool is_superuser { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string password { get; set; }

        /// <summary>
        /// 盐值
        /// </summary>
        public string salt { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? time_edit { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime time_create { get; set; }
    }
}